<template>
    <div class="total-data">
        <div class="block-title">数据总览</div>
        <div class="data-wrap">
            <div class="el-row">
                <div class="data-item el-col-8">
                    <p class="title">总资产</p>
                    <p class="count">{{income - payment}}</p>
                </div>
                <div class="data-item el-col-8">
                    <p class="title">总支出</p>
                    <p class="count">{{payment}}</p>
                </div>
                <div class="data-item el-col-8">
                    <p class="title">总收入</p>
                    <p class="count">{{income}}</p>
                </div>
            </div>
            <div class="el-row">
                <div class="data-item el-col-8">
                    <p class="title">待办计划数</p>
                    <p class="count red">{{backlogCount}}</p>
                </div>
                <div class="data-item el-col-8">
                    <p class="title">花销最多项目</p>
                    <p class="count">{{costTop}}</p>
                </div>
                <div class="data-item el-col-8">
                    <p class="title">收入最多项目</p>
                    <p class="count">{{getTop}}</p>
                </div>
            </div>
        </div>
    </div>
</template>
<script>

export default {
    data(){
        return{
            income:50000,
            payment:2000,
            costTop:'生活开销',
            getTop:'股票收入',
            backlogCount:3
        }
    },
    mounted() {
        
    },
    methods: {
        
    },
}
</script>
<style lang="less" scoped>
.total-data{
    width:100%;
    height: 16vw;
    min-height: 180px;
    .data-wrap{
        width:100%;
        height: calc(100% - 50px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .el-row{
        width:100%;
        height: 40%;
        .data-item{
            height: 100%;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            &>p{
                text-align: center;
                &.title{
                    color:#888888;
                    font-size: 16px;
                }
                &.count{
                    color:#000000;
                    font-size: 20px;
                    font-weight: bold;
                    margin-top: 10px;
                }
                &.red{
                    color:#ff0000;
                }
            }
        }
    }
}

</style>